export default (interval) => {
    const ready = ref(true)
    let timeout = null
    const changeReady = () => {
        ready.value = !ready.value
        clearTimeout(timeout)
        timeout = setTimeout(() => {
            ready.value = !ready.value
        }, interval)
    }
    return { ready, changeReady }
}